package com.guozcc.gateway.exception.detail;

/**
 * 自定义网关服务异常。
 * 返回500状态码
 *
 */
public class GatewayServerException extends RuntimeException{

    private String errorCode ;  //异常对应的返回码
    private String errorMessage;  //异常对应的描述信息


    public GatewayServerException() {
        super();
    }

    public GatewayServerException(String errorMessage) {
        super(errorMessage);
        this.errorMessage = errorMessage;
    }

    public GatewayServerException(String errorCode, String errorMessage) {
        super();
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public String getErrorMessage() {
        return this.errorMessage;
    }

}
